<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Easylib</title>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    
    <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
    <link href="<?php echo $this->asset('assets/css/layout.css') ?>" rel="stylesheet">
    <link href="<?php echo $this->asset('assets/css/jquery.dataTables.css') ?>" rel="stylesheet">
    <link href="<?php echo $this->asset('assets/css/black-tie/jquery-ui-1.10.3.custom.css') ?>" rel="stylesheet">
    <link href="<?php echo $this->asset('assets/css/bporgeditor.latest.css') ?>" rel="stylesheet">
    <link href="<?php echo $this->asset('assets/css/primitives.latest.css') ?>" rel="stylesheet">
    <link href="<?php echo $this->asset('assets/css/fullcalendar.css') ?>" rel="stylesheet">
    <script src="<?php echo $this->asset('assets/js/jquery.min.js') ?>"></script>
    <script src="<?php echo $this->asset('assets/js/jquery-ui-1.10.3.custom.js') ?>"></script>
    <script src="<?php echo $this->asset('assets/js/jquery.dataTables.min.js') ?>"></script>
    <script src="<?php echo $this->asset('assets/js/jquery.flot.min.js') ?>"></script>
    <script src="<?php echo $this->asset('assets/js/jquery.flot.time.min.js') ?>"></script>
    <script src="<?php echo $this->asset('assets/js/fullcalendar.min.js') ?>"></script>
    <script src="<?php echo $this->asset('assets/js/holder.js') ?>"></script>
    <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=fr"></script>

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <script>
        function detectmob() { 
            if( navigator.userAgent.match(/Android/i)
                || navigator.userAgent.match(/webOS/i)
                || navigator.userAgent.match(/iPhone/i)
                || navigator.userAgent.match(/iPad/i)
                || navigator.userAgent.match(/iPod/i)
                || navigator.userAgent.match(/BlackBerry/i)
                || navigator.userAgent.match(/Windows Phone/i)
            ){
            return true;
            }
            else {
                return false;
            }
        }
        
        $(function(){
            if(detectmob()){
                document.location.href = "mobile";
            }
        });
    </script>
  </head>
  <body>
    <?php $out = Atomik::execute('_menu'); echo $out[0]; ?>
    <div class="container">
      <?php if (count($this['flash_messages'])): ?>
        <?php foreach ($this['flash_messages'] as $label => $messages): ?>
          <?php foreach ($messages as $message): ?>
            <div class="alert alert-<?php echo $label ?>"><?php echo $message ?></li>
          <?php endforeach; ?>
        <?php endforeach; ?>
      <?php endif ?>
    
      <div id="content">
        <?php echo $contentForLayout; ?>
      </div>
    </div>
  </body>
</html>
